package com.guanzi.big_data_mq_process.model.dto;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

import com.guanzi.big_data_mq_process.model.entity.OrderDetails;
import lombok.Data;

/**
 * (Orders)DTO 保存类
 *
 * @author xuguang
 * @since 2025-05-06 21:57:45
 */
@Data
public class OrdersDTO implements Serializable {

    private Integer userId;

    private List<OrderDetails> details;

    private BigDecimal totalAmount;

    /**
     * 业务计算字段
     * @return
     */
    public String getTransactionId() {
        return "TX_" + System.currentTimeMillis();
    }

}
